{% extends "base.html" %}

{% block content %}
<div class="container mt-5">
    <h2 class="text-center mb-5">毕业设计交付流程</h2>

    <!-- 时间轴样式的流程展示 -->
    <div class="row">
        <div class="col-lg-10 mx-auto">
            <div class="timeline">
                <!-- 步骤1：提交需求 -->
                <div class="timeline-item">
                    <div class="timeline-badge bg-primary">
                        <i class="fas fa-file-alt"></i>
                    </div>
                    <div class="timeline-content">
                        <h4>1. 提交需求</h4>
                        <p>
                            <i class="fas fa-check text-success me-2"></i>填写论文基本信息<br>
                            <i class="fas fa-check text-success me-2"></i>上传开题报告<br>
                            <i class="fas fa-check text-success me-2"></i>选择是否需要环境配置<br>
                            <i class="fas fa-check text-success me-2"></i>设置期望完成日期
                        </p>
                    </div>
                </div>

                <!-- 步骤2：需求确认 -->
                <div class="timeline-item">
                    <div class="timeline-badge bg-info">
                        <i class="fas fa-handshake"></i>
                    </div>
                    <div class="timeline-content">
                        <h4>2. 需求确认</h4>
                        <p>
                            <i class="fas fa-check text-success me-2"></i>技术团队审核需求<br>
                            <i class="fas fa-check text-success me-2"></i>确认项目可行性<br>
                            <i class="fas fa-check text-success me-2"></i>沟通技术细节<br>
                            <i class="fas fa-check text-success me-2"></i>确定具体实现方案
                        </p>
                    </div>
                </div>

                <!-- 步骤3：开发实现 -->
                <div class="timeline-item">
                    <div class="timeline-badge bg-warning">
                        <i class="fas fa-code"></i>
                    </div>
                    <div class="timeline-content">
                        <h4>3. 开发实现</h4>
                        <p>
                            <i class="fas fa-check text-success me-2"></i>编写核心代码<br>
                            <i class="fas fa-check text-success me-2"></i>单元测试确保质量<br>
                            <i class="fas fa-check text-success me-2"></i>编写详细注释<br>
                            <i class="fas fa-check text-success me-2"></i>准备技术文档
                        </p>
                    </div>
                </div>

                <!-- 步骤4：交付验收 -->
                <div class="timeline-item">
                    <div class="timeline-badge bg-success">
                        <i class="fas fa-check-circle"></i>
                    </div>
                    <div class="timeline-content">
                        <h4>4. 交付验收</h4>
                        <p>
                            <i class="fas fa-check text-success me-2"></i>提供完整源代码<br>
                            <i class="fas fa-check text-success me-2"></i>部署运行环境（如需）<br>
                            <i class="fas fa-check text-success me-2"></i>技术指导和答疑<br>
                            <i class="fas fa-check text-success me-2"></i>确保功能正常运行
                        </p>
                    </div>
                </div>

                <!-- 步骤5：售后支持 -->
                <div class="timeline-item">
                    <div class="timeline-badge bg-danger">
                        <i class="fas fa-heart"></i>
                    </div>
                    <div class="timeline-content">
                        <h4>5. 全程跟踪支持</h4>
                        <p>
                            <i class="fas fa-check text-success me-2"></i>提供长期技术支持<br>
                            <i class="fas fa-check text-success me-2"></i>解答使用问题<br>
                            <i class="fas fa-check text-success me-2"></i>协助论文答辩<br>
                            <i class="fas fa-check text-success me-2"></i>后续功能优化<br>
                            <i class="fas fa-check text-success me-2"></i>全程答疑解惑<br>
                            <i class="fas fa-check text-success me-2"></i>直到顺利毕业
                        </p>
                        <div class="mt-2 alert alert-info">
                            <i class="fas fa-info-circle"></i>
                            我们承诺提供从开题到答辩的全程技术支持，确保您顺利完成毕业设计并通过答辩。
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 服务承诺 -->
    <div class="row mt-5">
        <div class="col-lg-10 mx-auto">
            <div class="card">
                <div class="card-body">
                    <h4 class="card-title text-center mb-4">我们的服务承诺</h4>
                    <div class="row">
                        <div class="col-md-4 text-center mb-3">
                            <i class="fas fa-shield-alt fa-3x text-primary mb-3"></i>
                            <h5>质量保证</h5>
                            <p>严格的代码审查机制<br>确保项目质量</p>
                        </div>
                        <div class="col-md-4 text-center mb-3">
                            <i class="fas fa-clock fa-3x text-primary mb-3"></i>
                            <h5>准时交付</h5>
                            <p>严格把控项目进度<br>确保按时完成</p>
                        </div>
                        <div class="col-md-4 text-center mb-3">
                            <i class="fas fa-graduation-cap fa-3x text-primary mb-3"></i>
                            <h5>全程跟踪</h5>
                            <p>专业的技术团队<br>直到顺利毕业</p>
                        </div>
                    </div>
                    <div class="text-center mt-4">
                        <div class="alert alert-success">
                            <h5><i class="fas fa-star"></i> 特别承诺</h5>
                            <p class="mb-0">
                                我们不仅提供代码实现，更注重全程技术指导。从开题、中期到最终答辩，
                                我们的技术团队将全程陪伴，确保您完全理解项目内容，顺利通过答辩，实现完美毕业。
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 开始按钮 -->
    <div class="text-center mt-5">
        {% if current_user.is_authenticated %}
        <a href="{{ url_for('main.submit_thesis') }}" class="btn btn-primary btn-lg">
            <i class="fas fa-rocket me-2"></i>立即开始
        </a>
        {% else %}
        <a href="{{ url_for('auth.register') }}" class="btn btn-primary btn-lg me-3">
            <i class="fas fa-user-plus me-2"></i>注册账号
        </a>
        <a href="{{ url_for('auth.login') }}" class="btn btn-outline-primary btn-lg">
            <i class="fas fa-sign-in-alt me-2"></i>立即登录
        </a>
        {% endif %}
    </div>
</div>

<style>
/* 时间轴样式 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #e9ecef;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
}

@media (max-width: 767px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-badge {
        left: 40px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
    }
}
</style>
{% endblock %} 